<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Os Desventurados</title>
<script type="text/javascript" src="js/jquery-1.6.4.min.js"></script>
<link href="css/login.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
    $(function(){
     $("#formValidar").bind("submit", chk);   
    });
function chk(e){
	var canSubmit=true;
        var e = $("input[name=email]").val();
	var p = $("input[name=pass]").val();
	if (e == "" || p == ""){
		alert ("Favor preencer todos campos")
		canSubmit=false;
                }else{
		return canSubmit;
		}
	
	}
function popw(URL) {

  var width = 260;
  var height = 260;

  var left = 199;
  var top = 300;

  window.open(URL,'janela', 'width='+width+', height='+height+', top='+top+', left='+left+', scrollbars=yes, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no');

}
</script>

</head>

<body>
<div id="fundo">
<div id="topo">
<div id="log">
    <form id="formValidar" name="formValidar" method="post" action="../classesC/JogadorC.php">
    <p>
      <label for="textfield">E-mail</label>
      <input type="text" name="email" id="email" />
    </p>
    <p>
      <label for="textfield2">Senha&nbsp;</label>
      <input type="password" name="pass" id="pass" />
      <input type="hidden" name="validar" value="validar" />
    </p>
    
    <center>
          <input type="submit" name="button" id="button" value="ENTRAR" />
    </center>
    
  </form>
<span class="links" onclick="window.location='cadastro.php'">Cadastrar-se</span>&nbsp;&nbsp;<span class="links" onclick="popw('rec_pass.php')">Esqueci a senha</span>



</div><!-- fim o div log -->
</div><!-- fim div topo -->
</div><!-- div do fundo -->
</body>
</html>